package data.nanjing.expo.models.dao;

import data.nanjing.expo.models.domain.User;
import data.nanjing.expo.models.domain.dto.BaseUser;
import org.apache.ibatis.annotations.Param;

/**
 * Created by zjp on 2018/6/30.
 * QQ：34948062
 * github: https://www.github.com/zjp1029
 * web： http://www.zjp1029.cn
 *
 */
public interface UserDao {

    //添加用户
    public Integer addUserInfo(User user);

    //登录
    public User selectUseByPhoneNoAndPassword(@Param("phoneNo") String phoneNo, @Param("password") String password);

    //查看是否已经注册
    public Integer selectCountByPoneNo(@Param("phoneNo") String phoneNo);

    public void updatePeopleBaseInfo(BaseUser user);

    public User selectUserInfoByPhoneNo(@Param("phoneNo") String userNo);

}
